package jp.ac.u_tokyo.dch.util.common;

import java.io.IOException;
import java.util.Properties;

public class MessageResourceUtil {

	private static Properties prop = new Properties();

	static {

		try {
			prop.load(MessageResourceUtil.class.getClassLoader().getResourceAsStream("MessageResources.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static String getText(String key) {

		return prop.getProperty(key);
	}

}
